<p-panel [collapsed]="false" header="筛选查询" [collapsed]="false" headerClass="bg-eaeaea border-none" headerClass="bg-eaeaea border-none"
  [(searchText)]="searchObj.searchValue" maxlength="50" search="整改项/项目编号/整改人姓名" (onSearch)="search();dt.reset();">
  <div class="p-2-8">
    <div class="inline-block">
      <span class="p-r-10 opacity06">状态： </span>
      <p-dropdown placeholder="全部" styleClass="width-150 m-r-30" [options]="status" [(ngModel)]="selectedType" [ngModelOptions]="{standalone: true}"
        optionLabel="name" (onChange)='search();dt.reset();'></p-dropdown>
    </div>
    <div class="inline-block">
      <span class="p-r-10 opacity06">是否延期：</span>
      <p-dropdown placeholder="全部" styleClass="width-150 m-r-30" [options]="isDelay" [(ngModel)]="selectedIsDelay" [ngModelOptions]="{standalone: true}"
        optionLabel="name" (onChange)='search();dt.reset();'></p-dropdown>
    </div>
    <div class="inline-block">
      <span class="p-r-10 opacity06">客户是否可见：</span>
      <p-dropdown placeholder="全部" styleClass="width-150 m-r-30" [options]="isCustomScan" [(ngModel)]="selectedIsCustomScan" [ngModelOptions]="{standalone: true}"
        optionLabel="name" (onChange)='search();dt.reset();'></p-dropdown>
    </div>
  </div>
</p-panel>




<p-dataTable #dt [value]="listData" scrollable="true"  [totalRecords]="totalRecords" [lazy]="true" (onLazyLoad)="onPage($event)"
  [paginator]="true"  [(selection)]="selectedRowData" [headerCheckboxToggleAllPages]="true" [marginHeight]="20" >
  <p-header>
  </p-header>
  <p-column *ngFor="let col of colsSelected" [field]='col.field' [header]='col.header' [hidden]="col.hidden"  [style]="{'width':col.width}">
    <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
      <div *ngIf="col.field === 'modifyRecord'">
        <a class="color-1a91eb" title="{{data[col.field]}}" target="_blank" [routerLink]="['/saas/engineer/constructionprocess/constructionmanage/modifyrecord/', data.id,data.infoId]">
          {{data.modifyRecord}} </a>
      </div>
      <div *ngIf="col.field === 'sortNum'">
        {{index+1}}
      </div>
      <div *ngIf="col.field === 'modifyStatus'">
        {{data.modifyStatus}}
      </div>
      <div *ngIf="col.field === 'isCustomScan'">
        {{data.isCustomScan?'客户可见':'客户不可见'}}
      </div>
      <div *ngIf="col.field === 'isDelay'">
        {{data.isDelay?'是':'否'}}
      </div>
    </ng-template>
    <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.dic">
      <div *ngIf="col.field === 'creater'">
        {{data[col.field]}} &nbsp; {{storage.dicFilter(col.dic,data['userType'])}}
      </div>
    </ng-template>
  </p-column>
</p-dataTable>
